package com.blog.mapper;

import com.blog.bean.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int deleteByPrimaryKey(@Param("articleId") Long articleId);

    int insert(@Param("article") Article article);

    int insertSelective(@Param("article") Article article);

    Article selectByPrimaryKey(@Param("articleId") Long articleId);

    int updateByPrimaryKeySelective(@Param("article") Article article);

    int updateByPrimaryKeyWithBLOBs(@Param("article") Article article);

    int updateByPrimaryKey(@Param("article") Article article);

    List<Article> selectArticle(@Param("article") Article article);

    List<Article> selectArticleByUpdate();
}